package cn.xie.wrench.ty.wrench.starter.design.framework.tree;

/**
 * @author: xiaoxie
 * create: 2025-05-14 14:43
 * @BelongsProject: ty-wrench
 * @BelongsPackage: cn.xie.wrench.ty.wrench.starter.design.framework.tree
 * description: 受理策略处理
 *  T 入参类型
 *  D 上下文参数
 *  R 返参类型
 */
public interface StrategyHandler<T, D, R> {

    StrategyHandler DEFAULT = (T, D) -> null;

    R apply(T requestParameter, D dynamicContext) throws Exception;

}

